﻿using Microsoft.AspNetCore.Http;
using PrivateTracker.Service.Core;
using System.ComponentModel.DataAnnotations;

namespace PrivateTracker.Service.Application;
/// <summary>
/// 
/// </summary>
public class TorrentInput
{
    /// <summary>
    /// 标题
    /// </summary>
    [MaxLength(255)]
    public string Title { get; set; }

    /// <summary>
    ///副标题
    /// </summary>
    [MaxLength(255)]
    public string Subtitle { get; set; }
    /// <summary>
    /// 豆瓣影视ID
    /// </summary>
    public long? DouBanId { get; set; }
    /// <summary>
    /// 种子文件
    /// </summary>
    [Required(ErrorMessage = "RegistInput.Email.Required")]
    public IFormFile TorrentFile { get; set; }
}

/// <summary>
/// 
/// </summary>
public class DownloadTorrentInput : QueryFileInfoInput
{
    /// <summary>
    /// 密钥
    /// </summary>
    public string? PassKey { get; set; }
}

/// <summary>
/// 删除种子实体
/// </summary>
public class DeleteTorrentInput : BaseId
{
}


/// <summary>
/// 资源分页参数
/// </summary>
public class TorrentPageInput : PageInputBase
{
    /// <summary>
    /// 标题
    /// </summary>
    public string Title { get; set; }
    /// <summary>
    /// 副标题
    /// </summary>
    public string Subtitle { get; set; }
}
